package cn.engage.product.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.engage.basic.domain.BaseDomain;
import cn.engage.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 产品评价
 * </p>
 *
 * @author engage
 * @since 2022-11-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductComment extends BaseDomain{

    private static final long serialVersionUID = 1L;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime = new Date();
    /**
     * 订单
     */
    private Long uerId;
    /**
     * 产品ID
     */
    private Long productId;

    private Product product;

    private User user;

    private Integer state = 0;

}
